Download OpenAPI specification:
The Preliminary Freight Charges (PFC) API proactively notifies responsible parties (debtors or their authorized agents, including consignees when designated as agents) that a motor carrier has created a freight bill for a shipment associated with that party. Further notifications occur when the bill is updated or removed from their account.
Creates a subscription to receive notifications for specified accounts, including in-flight shipments for new subscribers.
webhookUrl required | string <uri> URL to receive notifications |
accounts required | Array of strings non-empty List of account numbers to monitor. At least one account is required. Availability may be limited by carrier capabilities. |
required | object (DataOptions) |
frequency | string Default: "real_time" Enum: "real_time" "hourly" "daily" Notification frequency preference. Options may be limited by carrier rating frequency. |
includeEventLog | boolean Default: true Whether to include event change log |
billScope | string Default: "subscribed_accounts" Enum: "all_accounts" "subscribed_accounts" Scope of bills to include in notifications. 'all_accounts' refers to all accounts the user is authorized to access. |
{- "accounts": [
- "ACC001",
- "ACC002"
], - "dataOptions": {
- "shipmentDataType": "revenue_impacts_only",
- "eventType": "revenue_impacts_only"
}, - "frequency": "real_time",
- "includeEventLog": true,
- "billScope": "all_accounts"
}
{- "accounts": [
- "ACC001",
- "ACC002"
], - "dataOptions": {
- "shipmentDataType": "revenue_impacts_only",
- "eventType": "revenue_impacts_only"
}, - "frequency": "real_time",
- "includeEventLog": true,
- "billScope": "all_accounts",
- "subscriptionId": "sub_abc123",
- "status": "active",
- "createdAt": "2025-06-30T10:17:34.050Z",
- "updatedAt": "2025-06-30T10:17:34.050Z"
}
Retrieves details of a specific subscription.
subscriptionId required | string Example: sub_abc123 Unique identifier for the subscription |
{- "accounts": [
- "ACC001",
- "ACC002"
], - "dataOptions": {
- "shipmentDataType": "revenue_impacts_only",
- "eventType": "revenue_impacts_only"
}, - "frequency": "real_time",
- "includeEventLog": true,
- "billScope": "all_accounts",
- "subscriptionId": "sub_abc123",
- "status": "active",
- "createdAt": "2025-06-30T10:17:34.050Z",
- "updatedAt": "2025-06-30T10:17:34.050Z"
}
Cancels an existing subscription.
subscriptionId required | string Example: sub_abc123 Unique identifier for the subscription |
{- "code": "UNAUTHORIZED",
- "message": "Authentication credentials missing or invalid"
}
Retrieves a list of in-flight shipments for a specific subscription, representing shipments in transit for subscribed accounts at the time of subscription creation. Returns an empty array if no in-flight shipments are found for the subscription.
subscriptionId required | string Example: sub_abc123 Unique identifier for the subscription |
[- {
- "pfc": {
- "uniqueID": "1234567890EXLA",
- "header": {
- "function": "PFC1"
}, - "date": "2024-11-20T00:00:00.000",
- "version": "v1.0",
- "isTest": false
}, - "payment": {
- "terms": "Prepaid"
}, - "shipmentTotals": {
- "pickupDate": "2022-11-20T00:00:00.000",
- "grossWeight": 2000,
- "netWeight": 1975,
- "weightUnit": "Pounds",
- "handlingUnits": 2,
- "linearLength": 56,
- "dimensionsUnit": "inches",
- "cube": 128,
- "cubeDimensionsUnit": "Feet",
- "declaredValue": 700,
- "currency": "USD"
}, - "accessorials": {
- "codes": [
- "LFTD"
]
}, - "referenceNumbers": {
- "pro": "0011234567",
- "quoteId": "E556724",
- "shipmentId": "SID556724",
- "masterBol": "MBL98472578",
- "trailerId": "TID65821",
- "manifestId": "M653247",
- "bol": [
- "BL1285647"
], - "po": [
- {
- "number": "554238",
- "pieces": 5,
- "weight": "150",
- "weightUnit": "Pounds",
- "palletized": true,
- "additionalShipperInfo": "Freight must always stay upright"
}
], - "additionalReferences": [
- {
- "name": "Customer Reference ID",
- "value": "CRID12345"
}
]
}, - "origin": {
- "account": "12345",
- "locationId": "808",
- "name": "Closets Closets Closets",
- "address1": "12 S. Closets Place",
- "address2": "ste 3",
- "city": "Los Angeles",
- "stateProvince": "CA",
- "postalCode": "90001",
- "country": "USA"
}, - "destination": {
- "account": "12345",
- "locationId": "808",
- "name": "Closets Closets Closets",
- "address1": "12 S. Closets Place",
- "address2": "ste 3",
- "city": "Los Angeles",
- "stateProvince": "CA",
- "postalCode": "90001",
- "country": "USA"
}, - "billTo": {
- "account": "12345",
- "locationID": "808",
- "name": "Closets Closets Closets",
- "address1": "12 S. Closets Place",
- "address2": "ste 3",
- "city": "Los Angeles",
- "stateProvince": "CA",
- "postalCode": "90001",
- "country": "USA"
}, - "commodities": {
- "handlingUnits": [
- {
- "count": 2,
- "type": "SKD",
- "tareWeight": 5,
- "weight": 1500,
- "weightUnit": "Pounds",
- "length": 48,
- "width": 48,
- "height": 48,
- "dimensionUnit": "Inches",
- "stackable": false,
- "lineItems": [
- {
- "description": "Small frameless mirrors",
- "weight": 1500,
- "weightUnit": "Pounds",
- "pieces": 3,
- "packagingType": "box",
- "classification": "55",
- "nmfc": "86900",
- "nmfcSub": "3"
}
]
}
]
}, - "charges": {
- "grossCharges": 858.55,
- "discountAmount": 657.65,
- "discountPercent": 77,
- "totalTareWeight": 770,
- "tareWeightAmount": 50,
- "deficitWeight": 20.63,
- "fuelSurchargePercent": 31,
- "fuelSurchargeAmount": 62.88,
- "currencyType": "USD",
- "weightUnit": "Pounds",
- "detail": "House/Residential Delivery Fee",
- "preliminaryTotalCharges": 263.78,
- "class": [
- {
- "freightClass": "55",
- "cwt": 125
}
], - "changeLog": [
- {
- "eventCategoryName": "Limited Access",
- "eventCode": "LTDAD",
- "eventSubCode": "FARM",
- "carrierCode": "DBRS",
- "carrierDescription": "Debris hauled away",
- "weightAndResearchDocAvailable": false
}
], - "changeLogMessages": [
- {
- "informationalMessage": "The shipment has incurred a charge for an Inside Delivery Fee"
}
]
}
}
]
Post to Subscription defined endpoint PFC information.
[- {
- "pfc": {
- "uniqueID": "1234567890EXLA",
- "header": {
- "function": "PFC1"
}, - "date": "2024-11-20T00:00:00.000",
- "version": "v1.0",
- "isTest": false
}, - "payment": {
- "terms": "Prepaid"
}, - "shipmentTotals": {
- "pickupDate": "2022-11-20T00:00:00.000",
- "grossWeight": 2000,
- "netWeight": 1975,
- "weightUnit": "Pounds",
- "handlingUnits": 2,
- "linearLength": 56,
- "dimensionsUnit": "inches",
- "cube": 128,
- "cubeDimensionsUnit": "Feet",
- "declaredValue": 700,
- "currency": "USD"
}, - "accessorials": {
- "codes": [
- "LFTD"
]
}, - "referenceNumbers": {
- "pro": "0011234567",
- "quoteId": "E556724",
- "shipmentId": "SID556724",
- "masterBol": "MBL98472578",
- "trailerId": "TID65821",
- "manifestId": "M653247",
- "bol": [
- "BL1285647"
], - "po": [
- {
- "number": "554238",
- "pieces": 5,
- "weight": "150",
- "weightUnit": "Pounds",
- "palletized": true,
- "additionalShipperInfo": "Freight must always stay upright"
}
], - "additionalReferences": [
- {
- "name": "Customer Reference ID",
- "value": "CRID12345"
}
]
}, - "origin": {
- "account": "12345",
- "locationId": "808",
- "name": "Closets Closets Closets",
- "address1": "12 S. Closets Place",
- "address2": "ste 3",
- "city": "Los Angeles",
- "stateProvince": "CA",
- "postalCode": "90001",
- "country": "USA"
}, - "destination": {
- "account": "12345",
- "locationId": "808",
- "name": "Closets Closets Closets",
- "address1": "12 S. Closets Place",
- "address2": "ste 3",
- "city": "Los Angeles",
- "stateProvince": "CA",
- "postalCode": "90001",
- "country": "USA"
}, - "billTo": {
- "account": "12345",
- "locationID": "808",
- "name": "Closets Closets Closets",
- "address1": "12 S. Closets Place",
- "address2": "ste 3",
- "city": "Los Angeles",
- "stateProvince": "CA",
- "postalCode": "90001",
- "country": "USA"
}, - "commodities": {
- "handlingUnits": [
- {
- "count": 2,
- "type": "SKD",
- "tareWeight": 5,
- "weight": 1500,
- "weightUnit": "Pounds",
- "length": 48,
- "width": 48,
- "height": 48,
- "dimensionUnit": "Inches",
- "stackable": false,
- "lineItems": [
- {
- "description": "Small frameless mirrors",
- "weight": 1500,
- "weightUnit": "Pounds",
- "pieces": 3,
- "packagingType": "box",
- "classification": "55",
- "nmfc": "86900",
- "nmfcSub": "3"
}
]
}
]
}, - "charges": {
- "grossCharges": 858.55,
- "discountAmount": 657.65,
- "discountPercent": 77,
- "totalTareWeight": 770,
- "tareWeightAmount": 50,
- "deficitWeight": 20.63,
- "fuelSurchargePercent": 31,
- "fuelSurchargeAmount": 62.88,
- "currencyType": "USD",
- "weightUnit": "Pounds",
- "detail": "House/Residential Delivery Fee",
- "preliminaryTotalCharges": 263.78,
- "class": [
- {
- "freightClass": "55",
- "cwt": 125
}
], - "changeLog": [
- {
- "eventCategoryName": "Limited Access",
- "eventCode": "LTDAD",
- "eventSubCode": "FARM",
- "carrierCode": "DBRS",
- "carrierDescription": "Debris hauled away",
- "weightAndResearchDocAvailable": false
}
], - "changeLogMessages": [
- {
- "informationalMessage": "The shipment has incurred a charge for an Inside Delivery Fee"
}
]
}
}
]
Tests webhook delivery for notifications.
webhookUrl | string <uri> Webhook URL to test |
{
}
{- "code": "INVALID_REQUEST",
- "message": "Invalid request body or parameters",
- "details": {
- "field": "webhookUrl",
- "error": "Must be a valid URI"
}
}